 import java.awt.*;
 
public class Explode {
	int x,y;
	
	private boolean Live =true;
	private TankClient tc;
	
	 int [] diameter = {4,7,14,18,20,25,30,49,26,6};
	int step =0;
	
	
	public Explode(int x,int y,TankClient tc)
	{
		this.x= x;
		this.y=y;
		this.tc=tc;
	}
	public void draw(Graphics g)
	{
		if(!Live)
			{
				tc.Explodes.remove(this);
				return;
			}
		
		if(step == diameter.length)
		{
			Live=false;
			step=0;
			return;
		}
		
		Color c = g.getColor();
		g.setColor(Color.ORANGE);
		g.fillOval(x, y, diameter[step], diameter[step]);
		step++;
		
	}
}
